package fun.easycode.jointblock.manager;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(
        name = "PraiseClient",
        url = "http://api.cd0755d8e9df9425a8d1653d7ac3a863d.cn-beijing.alicontainer.com/like-api")
public interface PraiseClient {

    @GetMapping("/v2/likes/validation")
    ResponseEntity<Map<String, Boolean>> getValidation(@RequestParam List<String> topicIds,
                                                       @RequestParam String userId);
}
